@import '../../../../../node_modules/antd/lib/style/themes/default.less';

@description-padding-bottom: 10px;

.descriptionList {
  :global {
    .ant-row {
      overflow: hidden;
    }
  }

  .title {
    margin-bottom: 16px;
    color: @heading-color;
    font-weight: 500;
    font-size: 14px;
  }

  .label {
    display: table-cell;
    color: @heading-color;
    line-height: 20px;
    white-space: nowrap;
    text-align: right;

    &::after {
      position: relative;
      top: -0.5px;
      margin: 0 8px 0 2px;
      line-height: 22px;
      content: ':';
    }
  }

  .detail {
    display: table-cell;
    width: 100%;
    color: @text-color;
    line-height: 22px;
  }

  &.small {
    // offset the padding-bottom of last row
    :global {
      .ant-row {
        margin-bottom: -8px;
      }
    }
    .title {
      margin-bottom: 12px;
      color: @text-color;
    }
    .label,
    .detail {
      padding-bottom: 8px;
    }
  }

  &.large {
    .title {
      font-size: 16px;
    }
  }

  &.vertical {
    .label {
      display: block;
      padding-bottom: 8px;
    }

    .detail {
      display: block;
    }
  }
}
